home *** CD-ROM | disk | FTP | other *** search
- Dim nFeaturesIncluded:nFeaturesIncluded = 0
-
- If (IsFeatureExists("EN") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("DE") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("FR") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("ES") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("IT") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("BP") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("JP") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("CZ") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("CS") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("CT") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("KO") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("NL") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
- If (IsFeatureExists("PL") = "1") Then
- nFeaturesIncluded = nFeaturesIncluded + 1
- End If
-
- If (nFeaturesIncluded > 1) Then
- Session.Property("ShowLanguagePackDialog") = "1"
- Else
- If (IsFeatureExists("EN") = "1") Then
- Session.Property("ENLANG") = "1"
- End If
- If (IsFeatureExists("DE") = "1") Then
- Session.Property("DELANG") = "1"
- End If
- If (IsFeatureExists("FR") = "1") Then
- Session.Property("FRLANG") = "1"
- End If
- If (IsFeatureExists("ES") = "1") Then
- Session.Property("ESLANG") = "1"
- End If
- If (IsFeatureExists("IT") = "1") Then
- Session.Property("ITLANG") = "1"
- End If
- If (IsFeatureExists("BP") = "1") Then
- Session.Property("BPLANG") = "1"
- End If
- If (IsFeatureExists("JP") = "1") Then
- Session.Property("JPLANG") = "1"
- End If
- If (IsFeatureExists("CZ") = "1") Then
- Session.Property("CZLANG") = "1"
- End If
- If (IsFeatureExists("CS") = "1") Then
- Session.Property("CSLANG") = "1"
- End If
- If (IsFeatureExists("CT") = "1") Then
- Session.Property("CTLANG") = "1"
- End If
- If (IsFeatureExists("KO") = "1") Then
- Session.Property("KOLANG") = "1"
- End If
- If (IsFeatureExists("NL") = "1") Then
- Session.Property("NLLANG") = "1"
- End If
- If (IsFeatureExists("PL") = "1") Then
- Session.Property("PLLANG") = "1"
- End If
- End If
-
-
-
-
- '///////////////////////////////////////////////////////////////////////////
- Function IsFeatureExists(sFeature)
- On Error Resume Next
-
- Dim objDB: Set objDB = Session.Database
-
- Dim sQuery: sQuery = "SELECT * FROM `Feature` WHERE `Feature`.`Feature` = '" & sFeature & "'"
-
- Dim objView: Set objView = objDB.OpenView(sQuery)
- objView.Execute
-
- Dim objRec: Set objRec = objView.Fetch
-
- If (objRec Is Nothing) Then
- ' not there
- IsFeatureExists = 0
- Else
- ' there
- IsFeatureExists = "1"
- End If
-
- End Function
-